-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Allow build action to be triggered remotely #47
Conversation
31f6148
to
8b3c77a
Compare
daf501e
to
524fc9a
Compare
9b2c7fc
to
c2c4fbd
Compare
3e16f00
to
8407dbc
Compare
8407dbc
to
ece1434
Compare
this should do the same as the build action when remotely triggered, but in a separate file for testing purposes
ece1434
to
de05e43
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job! Comments are minor.
@@ -41,28 +41,31 @@ jobs: | |||
run: > | |||
docker run | |||
--rm | |||
-v ${{ github.workspace }}:/ci | |||
-v $GITHUB_WORKSPACE:/ci |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference with {{ github.workspace }}
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think nothing (it came up when I was checking things with chatgpt), but found this slightly more readable. Wouldn't have made a separate PR for it, but while I was at it...
- name: Python info | ||
shell: bash -e {0} | ||
run: | | ||
which python3 | ||
python3 --version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no... it was already in there. I guess for troubleshooting reasons.
.github/workflows/lint.yml
Outdated
- name: Upgrade pip and install dependencies | ||
run: | | ||
python3 -m pip install --upgrade pip poetry | ||
poetry install --with test | ||
- name: Check linting and formatting using ruff | ||
run: | | ||
poetry run ruff check | ||
poetry run ruff format --check |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if it makes sense to go through poetry for checking the linting, or if we can just pip install ruff and run the check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll make the change in the other repo too :)
.github/workflows/remote_build.yml
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's nice to have a debug workflow ready to be used in case of need
bb9dcd9
to
4e07dd5
Compare
Lint action will bypass poetry install and always install latest version of ruff. If the action fails, a message is echoed reminding users to install the latest version of ruff. Also, poetry was updated to the newest current version of ruff.
4e07dd5
to
c339a07
Compare
This change allows the build action to be triggered by an action in a remote repo.
This will be used by eitprocessing as of PR 235, and these PRs should be reviewed together.
EDIT: @wbaccinelli , i had tagged you for review, but have since realized that it wasnt working as intended. I will fix it first and then request a new review when it's working.
--> THIS IS NOW DONE!
Some additional changes were made to the actions. All commits are atomic and can be reviewed independently.
Main additional changes: